/**
 * 同步检查是否包含敏感词
 */
async function checkString(content) {
  try {
    var res = await wx.cloud.callFunction({
      name: 'checkString',
      data: {
        content: content,
      }
    });
    if (res.result.errCode == 0)
      return true;
    return false;
  } catch (err) {
    console.log(err);
    return false;
  }
}
module.exports = {
  checkString: checkString
}